package com.wbl.gulimall.product.controller;

import com.wbl.gulimall.product.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: 王博纶
 * Date: 2024/5/30 12:31
 * FileName: ProductController
 * Description: 商品的controller类
 */
@RequestMapping("/test")
@RestController
public class ProductController {

    @Autowired
    public BrandService brandService;

    @GetMapping("/get")
    public String test(){
        long count = brandService.count();
        return count + "";
    }
}
